using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class InfoManager : MonoBehaviour
{
    private string Infotext;
    private Color InfoColor;

    public static InfoManager Instance;

    private void Awake()
    {
        Instance = this;
    }

    public void ShowInfoText(Vector2 position, string info, Color color)
    {
        Infotext = info;
        InfoColor = color;
        GameObject obj = Object.Instantiate(Resources.Load("Model/InfoText")) as GameObject;
        obj.transform.position = position;
    }

    public void ShowSlowInfoText(Vector2 position, string info, Color color)
    {
        Infotext = info;
        InfoColor = color;
        GameObject obj = Object.Instantiate(Resources.Load("Model/SlowInfoText")) as GameObject;
        obj.transform.position = position;
    }

    public string GetInfoText()
    {
        return Infotext;
    }

    public Color GetInfoColor()
    {
        return InfoColor;
    }
}
